<%@ include file="htmlHead.jsp" %>
<link rel="stylesheet" type="text/css" href="${path}/css/consumer.css"/>
<link rel="stylesheet" type="text/css" href="${path}/js/libs/bootstrap/css/bootstrap.css"/>
</head>
<%@ page import="com.glodon.paas.account.web.util.SecurityUtils" %>
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page pageEncoding="utf-8" %>
<body>
<div id="authorize_content_wrap">
    <%-- <%@ include file="header.jsp" %> --%>
    <div id="authorize_container">
        <div id="glodon_authorize">
            <div class="well">
                <div class="row">
                    <div class="span6">
                        <a href="#"><c:out value="${consumer_desc}"/></a>需要得到您的授权来进行以下操作.
                    </div>
                </div>
                <div class="row">
                    <div class="span6">
                        <div class="span1" style="margin-left:0"><img src="${path}/images/auth.png"></div>
                        <div class="span5">
                            <div><strong>访问我的账户信息</strong></div>
                            <div>应用将能够获取您在广联云通行证中个人信息</div>
                        </div>
                    </div>

                </div>
                <div class="row">
                    <div class="span6">
                        <div class="span1" style="margin-left:0"><img src="${path}/images/auth1.png"></div>
                        <div class="span5">
                            <div><strong> 访问我的文档数据</strong></div>
                            <div>应用将能够访问您在广联云文档中的文档数据</div>
                        </div>
                    </div>
                </div>
                <div class="row">
                	<div class="form-actions">
                        <form action="${path}/oauth/authorize" method="post"
                              style="display:inline">
                            <input type="hidden" name="oauth_token" value="${param.oauth_token}"/>
                            <input type="hidden" name="oauth_callback" value="${param.oauth_callback}"/>
                            <input type="hidden" name="uid" value="<%=SecurityUtils.getCurrentUser().getId()%>">
                            <input type="hidden" name="hybrid" value="${param.hybrid}"/>
                            <input name="authorize" value="授权" type="submit" class="btn btn-success">
                        </form>
                        <form action="${path}/oauth/authorize" method="post"
                              style="display:inline">
                            <input type="hidden" name="oauth_token" value="${param.oauth_token}"/>
                            <input type="hidden" name="oauth_callback" value="${param.oauth_callback}"/>
                            <input name="deny" value="拒绝" type="submit" class="btn">
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</body>
</html>
